package zut.edu;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class A49 {
    public static void main(String[] args)
    {
        String[] str1 = new String[3];
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < 3; i++)
        {
            System.out.println("第"+(i+1)+"输入单词");
            str1[i] = scanner.next();
        }
        Arrays.sort(str1);
        System.out.println(Arrays.toString(str1));
    }
}
